package com.ironman.mes.filter;

import lombok.extern.slf4j.Slf4j;
import org.noear.solon.core.handle.Context;
import org.noear.solon.core.handle.Filter;
import org.noear.solon.core.handle.FilterChain;

@Slf4j
public class LoggingFilter implements Filter {

    @Override
    public void doFilter(Context ctx, FilterChain chain) throws Throwable {
        log.info("LoggingFilter before");
        chain.doFilter(ctx);
        log.info("LoggingFilter after");
    }
}